package org.minbox.chapter.seata.mapper;


import com.cloud.model.order.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * @author 恒宇少年
 */
@Mapper
public interface OrderMapper  {

    @Update("INSERT INTO `cloud_order`.`seata_order` (\n" +
            "	`good_id`,\n" +
            "	`account_id`,\n" +
            "	`price`\n" +
            ")\n" +
            "VALUES\n" +
            "	( #{goodId}, #{accountId}, #{price})")
   boolean  save(Order order);



}
